<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- public quote -->
<%@include file="/jsp/comm_css_include.jsp"%>
<form class="form-horizontal business-form" id="creditinfod">
	<div class="current-state-bno" >
        <div class="submit-buttonleft">
			<button id="lawsuitSave" class="btn-danger-my btn  btn-primary" type="button" onclick="lawsuitSaveOrUpdate();" >保存</button>
			<button id="lawsuitUpdate" class="btn-danger-my btn  btn-primary" type="button" onclick="lawsuitSaveOrUpdate();" >修改</button>
		</div>
    </div>
    <div class="business-manwife">
	   	<ul id="susong">
	   		<li class="ssactive">诉讼一审</li>
	   		<li>诉讼二审</li>
	   	</ul>
   	</div>
   	<div id="susongcotent" class="clear-both">
       	<div class="padding-nono">
       		<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
			<tr>	
				<td align="right">
					<label class="control-label np">法院立案日期：</label>
				</td>
				<td>
					<input id="dateRegister1" name="date_register1"  type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="立案日期(必填)" onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">案号：</label>
				</td>
				<td>
				 	<input id="numberAcceptCourt1" name="number_accept_court1" minlength="1" maxlength="20" type="text" class="form-control" required="" aria-required="true" placeholder="案号(必填)" / >
				</td>
			</tr>
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">案由：</label>
				</td>
				<td colspan="3">
					<textarea id="reasonCourt1" name="reason_court1" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">原告：</label>
				</td>
				<td>
					<input id="plaintiff1" name="plaintiff1" type="text" class="form-control" required="" aria-required="true" placeholder="原告(必填)"/>
				</td>
				
				
				<td align="right">
					<label class="control-label np">被告：</label>
				</td>
				<td>
					<input id="defendant1" name="defendant1" type="text" class="form-control" required="" aria-required="true" placeholder="被告(必填)"/>
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">管辖法院：</label>
				</td>
				<td colspan="3">
				 	<input id="courtVenue1" name="court_venue1" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="法院(必填)" />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">诉讼总标的：</label>
				</td>
				<td>
					<input id="amountTotal1" name="amount_total1" minlength="1" maxlength="64" type="number" class="form-control" required="" aria-required="true" placeholder="诉讼总标的(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">诉讼费：</label>
				</td>
				<td>
					<input id="amountLawsuit1" name="amount_lawsuit1" type="number" class="form-control" required="" aria-required="true" placeholder="诉讼费(必填)" />
				</td>
				
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">承办法院：</label>
				</td>
				<td>
					<input id="courtUndertake1" name="court_undertake1" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="法院(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">承办法院电话：</label>
				</td>
				<td>
					<input id="telCourtUndertake1" name="tel_court_undertake1" type="text" class="form-control" required="" aria-required="true" placeholder="电话(必填)" />
				</td>
				
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">书记员：</label>
				</td>
				<td>
					<input id="clerk1" name="clerk1" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="书记员(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">书记员电话：</label>
				</td>
				<td>
					<input id="telClerk1" name="tel_clerk1" type="text" class="form-control"  aria-required="true"  />
				</td>
				
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">开庭时间：</label>
				</td>
				<td>
					<input id="dateSession1" name="date_session1"  type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="开庭时间(必填)" onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">公告费：</label>
				</td>
				<td>
					<input id="feeAnnouncement1" name="fee_announcement1" type="number" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">判决内容：</label>
				</td>
				<td colspan="3">
					<textarea id="contentJudgement1" name="content_judgement1" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">保全日期：</label>
				</td>
				<td>
					<input id="datePreserve1" name="date_preserve1"  type="text" class="smallicontm form-control"  aria-required="true"  onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">保全金额：</label>
				</td>
				<td>
					<input id="amountPreserve1" name="amount_preserve1" type="number" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">保全费：</label>
				</td>
				<td>
					<input id="feePreserve1" name="fee_preserve1" type="number" class="form-control"  aria-required="true"  />
				</td>
				
				<td align="right">
					<label class="control-label np">保全承办法官：</label>
				</td>
				<td>
					<input id="judgePreserve1" name="judge_preserve1" type="text" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">判决生效日期：</label>
				</td>
				<td>
					<input id="dateJudgment1" name="date_judgment1"  type="text" class="smallicontm form-control" required="required" aria-required="true"  onclick="laydate()" placeholder="判决生效日期(必填)"/>
				</td>
				
				<td align="right">
					<label class="control-label np">保全承办法官电话：</label>
				</td>
				<td>
					<input id="telJudgePreserve1" name="tel_judge_preserve1" type="text" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">退还诉讼费日期：</label>
				</td>
				<td>
					<input id="dateBackLawsuit1" name="date_back_lawsuit1"  type="text" class="smallicontm form-control"  aria-required="true"  onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">退还金额：</label>
				</td>
				<td>
					<input id="amountBack1" name="amount_back1" type="number" class="form-control" required="required" aria-required="true" placeholder="退还金额(必填)" />
				</td>
			</tr>
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">备注：</label>
				</td>
				<td colspan="3">
					<textarea id="remark1" name="remark1" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
		</table>
	</div>
	
	<div class="padding-nono" style="display: none;">
       		<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
			<tr>	
				<td align="right">
					<label class="control-label np">法院立案日期：</label>
				</td>
				<td>
					<input id="dateRegister2" name="date_register2"  type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="立案日期(必填)" onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">案号：</label>
				</td>
				<td>
				 	<input id="numberAcceptCourt2" name="number_accept_court2" minlength="1" maxlength="20" type="text" class="form-control" required="" aria-required="true" placeholder="案号(必填)" / >
				</td>
			</tr>
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">案由：</label>
				</td>
				<td colspan="3">
					<textarea id="reasonCourt2" name="reason_court2" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">原告：</label>
				</td>
				<td>
					<input id="plaintiff2" name="plaintiff2" type="text" class="form-control" required="" aria-required="true" placeholder="原告(必填)"/>
				</td>
				
				
				<td align="right">
					<label class="control-label np">被告：</label>
				</td>
				<td>
					<input id="defendant2" name="defendant2" type="text" class="form-control" required="" aria-required="true" placeholder="被告(必填)"/>
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">管辖法院：</label>
				</td>
				<td colspan="3">
				 	<input id="courtVenue2" name="court_venue2" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="法院(必填)" />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">诉讼总标的：</label>
				</td>
				<td>
					<input id="amountTotal2" name="amount_total2" minlength="1" maxlength="64" type="number" class="form-control" required="" aria-required="true" placeholder="诉讼总标的(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">诉讼费：</label>
				</td>
				<td>
					<input id="amountLawsuit2" name="amount_lawsuit2" type="number" class="form-control" required="" aria-required="true" placeholder="诉讼费(必填)" />
				</td>
				
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">承办法院：</label>
				</td>
				<td>
					<input id="courtUndertake2" name="court_undertake2" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="法院(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">承办法院电话：</label>
				</td>
				<td>
					<input id="telCourtUndertake2" name="tel_court_undertake2" type="text" class="form-control" required="" aria-required="true" placeholder="电话(必填)" />
				</td>
				
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">书记员：</label>
				</td>
				<td>
					<input id="clerk2" name="clerk2" minlength="1" maxlength="64" type="text" class="form-control" required="" aria-required="true" placeholder="书记员(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">书记员电话：</label>
				</td>
				<td>
					<input id="telClerk2" name="tel_clerk2" type="text" class="form-control"  aria-required="true"  />
				</td>
				
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">开庭时间：</label>
				</td>
				<td>
					<input id="dateSession2" name="date_session2"  type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="开庭时间(必填)" onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">公告费：</label>
				</td>
				<td>
					<input id="feeAnnouncement2" name="fee_announcement2" type="number" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">判决内容：</label>
				</td>
				<td colspan="3">
					<textarea id="contentJudgement2" name="content_judgement2" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">保全日期：</label>
				</td>
				<td>
					<input id="datePreserve2" name="date_preserve2"  type="text" class="smallicontm form-control"  aria-required="true"  onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">保全金额：</label>
				</td>
				<td>
					<input id="amountPreserve2" name="amount_preserve2" type="number" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">保全费：</label>
				</td>
				<td>
					<input id="feePreserve2" name="fee_preserve2" type="number" class="form-control"  aria-required="true"  />
				</td>
				
				<td align="right">
					<label class="control-label np">保全承办法官：</label>
				</td>
				<td>
					<input id="judgePreserve2" name="judge_preserve2" type="text" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">判决生效日期：</label>
				</td>
				<td>
					<input id="dateJudgment2" name="date_judgment2"  type="text" class="smallicontm form-control" required="required" aria-required="true"  onclick="laydate()" placeholder="判决生效日期(必填)"/>
				</td>
				
				<td align="right">
					<label class="control-label np">保全承办法官电话：</label>
				</td>
				<td>
					<input id="telJudgePreserve2" name="tel_judge_preserve2" type="number" class="form-control"  aria-required="true"  />
				</td>
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">退还诉讼费日期：</label>
				</td>
				<td>
					<input id="dateBackLawsuit2" name="date_back_lawsuit2"  type="text" class="smallicontm form-control"  aria-required="true"  onclick="laydate()" />
				</td>
				
				<td align="right">
					<label class="control-label np">退还金额：</label>
				</td>
				<td>
					<input id="amountBack2" name="amount_back2" type="number" class="form-control" required="required" aria-required="true" placeholder="退还金额(必填)" />
				</td>
			</tr>
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">备注：</label>
				</td>
				<td colspan="3">
					<textarea id="remark2" name="remark2" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>
		</table>
	</div>	
  </div>       	
    <div class="business-manwife">强制执行</div>
    <div class="padding-nono">
       	<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
			<tr>	
				<td align="right">
					<label class="control-label np">法院立案日期：</label>
				</td>
				<td>
					<input id="dateRegisterEnforce" name="date_register_enforce" onclick="laydate()" type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="受理日(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">受理案号：</label>
				</td>
				<td>
				 	<input id="voucherNumber" name="voucher_number" minlength="1" maxlength="20" type="text" class="form-control" required="" aria-required="true" placeholder="受理案号(必填)" />
				</td>
			</tr>
			<tr>
				<td align="right" valign="top">
					<label class="control-label np">案由：</label>
				</td>
				<td colspan="3">
					<textarea id="reasonEnforce" name="reason_enforce" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>	
			<tr>	
				<td align="right">
					<label class="control-label np">管辖法院：</label>
				</td>
				<td>
					<input id="courtEnforce" name="court_enforce" minlength="1" maxlength="20" type="text" class="form-control" required="" aria-required="true" placeholder="管辖法院(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">申请执行人：</label>
				</td>
				<td>
					<input id="executionApplicant" name="execution_applicant" type="text" class="form-control" required="" aria-required="true" placeholder="申请执行人(必填)" />
				</td>
				
			</tr>
			
			<tr>	
				<td align="right">
					<label class="control-label np">被执行人：</label>
				</td>
				<td>
					<input id="peopleEnforced" name="people_enforced" minlength="1" maxlength="20" type="text" class="form-control" required="" aria-required="true" placeholder="被执行人(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">执行承办法官：</label>
				</td>
				<td>
					<input id="judgeEnforce" name="judge_enforce" type="text" class="form-control" required="" aria-required="true" placeholder="执行承办法官(必填)" />
				</td>
				
			</tr>
			<tr>	
				<td align="right">
					<label class="control-label np">执行标的：</label>
				</td>
				<td>
					<input id="targetsEnforced" name="targets_enforced" minlength="1" maxlength="20" type="number" class="form-control" required="" aria-required="true" placeholder="执行标的(必填)" />
				</td>
			</tr>
			<tr>
				<td align="right" valign="top">
					<label class="control-label np">财产线索：</label>
				</td>
				<td colspan="3">
					<textarea id="propertyClue" name="property_clue" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>	
			
			<tr>	
				<td align="right">
					<label class="control-label np">执行中止日期：</label>
				</td>
				<td>
					<input id="dateSuspendEnforce" name="date_suspend_enforce"  type="text" class="smallicontm form-control"  aria-required="true" required=""  onclick="laydate()" placeholder="执行中止日期(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">执行终结日期：</label>
				</td>
				<td>
					<input id="dateEndEnforce" name="date_end_enforce"  type="text" class="smallicontm form-control"  aria-required="true" required="" onclick="laydate()" placeholder="执行终结日期(必填)" />
				</td>
			</tr>
			
			<tr>
				<td align="right" valign="top">
					<label class="control-label np">执行备注：</label>
				</td>
				<td colspan="3">
					<textarea id="remarkExec" name="remark_exec" minlength="1" cols="3" maxlength="200"  class="form-control" ></textarea>
				</td>
			</tr>	
		</table>
		
		<table cellpadding="0" cellspacing="0" border="0" class="thead-table">
			<thead class="thead-a">
			    <tr>
			      <th>执行本金</th>
				  <th>执行罚息</th>
				  <th>执行费用</th>
			      <th>执行利息</th>
			      <th>执行合计</th>
			    </tr>
			</thead>
			<tbody class="tbody-a">
			    <tr>
			      <td><input id="principleEnforce" onkeyup="am(this);" onafterpaste="am(this);" name="principleEnforce" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="interestEnforce" onkeyup="am(this);" onafterpaste="am(this);" name="interestEnforce" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="penaltyEnforce" onkeyup="am(this);" onafterpaste="am(this);" name="penaltyEnforce" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="totalEnforce" onkeyup="am(this);" onafterpaste="am(this);" name="totalEnforce" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="feeEnforce"  name="" type="text" class="tbody-control" readonly="readonly" aria-required="true"  ></td>
			    </tr>
			 </tbody>
		</table>
		
		<table cellpadding="0" cellspacing="0" border="0" class="thead-table thead-tableb">
			<thead class="thead-a">
			    <tr>
			      <th>法院受理标的</th>
				  <th>已还期数</th>
				  <th>已还本金</th>
				  <th>已还利息</th>
			      <th>剩余期数</th>
			      <th>剩余本金</th>
			      <th>剩余利息</th>
			    </tr>
			</thead>
			<tbody class="tbody-a">
			    <tr>
			      <td><input id="targetsCourt" name="targetsCourt" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="numAmortized" name="numAmortized" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="principalAmortized" name="principalAmortized" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="interestAmortized" name="interestAmortized" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="numSurplus" name="numSurplus" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="principalSurplus" name="principalSurplus" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			      <td><input id="interestSurplus" name="interestSurplus" type="text" class="tbody-control" required="" aria-required="true"  ></td>
			    </tr>
			 </tbody>
		</table>
		
		<table cellpadding="0" cellspacing="0" border="0" class="buyinfor-table">
			<tr>	
				<td align="right">
					<label class="control-label np">二次执行日期：</label>
				</td>
				<td>
					<input id="dateEnforceSecond" name=""  onclick="laydate()" type="text" class="smallicontm form-control" required="" aria-required="true" placeholder="二次执行日期(必填)" />
				</td>
				
				<td align="right">
					<label class="control-label np">二次执行标的：</label>
				</td>
				<td>
					<input id="targetsCourtSecond" name=""  type="text" class="form-control" required="" placeholder="二次执行标的(必填)" />
				</td>
			</tr>
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">二次执行备注：</label>
				</td>
				<td colspan="3">
					<textarea id="remarkEnforceSecond" name=""  rows="3" style="resize: none;" type="text" class="form-control" aria-required="true" placeholder="请输入备注"></textarea>
				</td>

			</tr>
			
			<tr>	
				<td align="right" valign="top">
					<label class="control-label np">强制执行备注：</label>
				</td>
				<td colspan="3">
					<textarea id="remarkEnforce" name=""  rows="3" style="resize: none;" type="text" class="form-control" aria-required="true" placeholder="请输入备注"></textarea>
				</td>

			</tr>
			
		</table>
		
   </div>
    <div class="business-manwife">存档信息</div>
    <div class="padding-nono">
      		<ul class="zxsearch-ul">
           	<li class="zxsearch-ulli">开卡状态：</li>
           	<li><label><input type="checkbox" name="loaninfoArchive" id="loaninfoArchive" />&nbsp;客户贷款资料</label></li>
           	<li><label><input type="checkbox" name="indictmentArchive" id="indictmentArchive" />&nbsp;起诉书</label></li>
			<li><label><input type="checkbox" name="directoryEvidenceArchive" id="directoryEvidenceArchive" />&nbsp;证据目录</label></li>
			<li><label><input type="checkbox" name="evidenceArchive" id="evidenceArchive" />&nbsp;证据材料</label></li>
			<li><label><input type="checkbox" name="rulingArchive" id="rulingArchive" value="1"/>&nbsp;裁定书</label></li>
        </ul>
		<ul class="zxsearch-ulc clear-both clear-padding">
           	<li class="zxsearch-ulli">信息备注：</li>
           	<li class="zxsearch-ullib clear-padding">
				<textarea id="remark" name=""  rows="5" style="resize: none;" type="text" class="form-control" aria-required="true" placeholder="请输入备注"></textarea>
			</li>
          </ul>	
      </div>    
</form>	
<%@include file="/jsp/comm_js_include.jsp"%>
	<script type="text/javascript">
		var $susong = $('#susong li');
		var $susongc = $('#susongcotent .padding-nono');
	    $susong.click(function(){
			var $this = $(this);
			var $t = $this.index();
			$susong.removeClass();
			$this.addClass('ssactive');
			$susongc.css('display','none');
			$susongc.eq($t).css('display','block');
		});
	
		//合计
	    var am = function(th){
	    	var principleEnforce = $("#principleEnforce").val();
	    	var interestEnforce = $("#interestEnforce").val();
	    	var penaltyEnforce = $("#penaltyEnforce").val();
	    	var totalEnforce = $("#totalEnforce").val();
	    	var feeEnforce = parseFloat(principleEnforce*1 + interestEnforce*1 + penaltyEnforce*1 + totalEnforce*1);
	    	$('#feeEnforce').val(feeEnforce.toFixed(2));
	    }
	
		var lawsuitSaveOrUpdate=function(){
        	var data={};
        	var url='${basePath}/DhOverdueLawsuitController/save';
        	var fyInfoId=$("#fyInfoId").val();
        	if(fyInfoId!=null && fyInfoId!=""){
        		data.id=fyInfoId;
        		url='${basePath}/DhOverdueLawsuitController/modify';
        	}
        	data.dateRegister1=$("#dateRegister1").val();
        	data.numberAcceptCourt1=$("#numberAcceptCourt1").val();
        	data.reasonCourt1=$("#reasonCourt1").val();
        	data.plaintiff1=$("#plaintiff1").val();
        	data.defendant1=$("#defendant1").val();
        	data.courtVenue1=$("#courtVenue1").val();
        	data.amountTotal1=$("#amountTotal1").val();
        	data.amountLawsuit1=$("#amountLawsuit1").val();
        	data.courtUndertake1=$("#courtUndertake1").val();
        	data.telCourtUndertake1=$("#telCourtUndertake1").val();
        	data.clerk1=$("#clerk1").val();
        	data.telClerk1=$("#telClerk1").val();
        	data.dateSession1=$("#dateSession1").val();
        	data.feeAnnouncement1=$("#feeAnnouncement1").val();
        	data.contentJudgement1=$("#contentJudgement1").val();
        	data.datePreserve1=$("#datePreserve1").val();
        	data.amountPreserve1=$("#amountPreserve1").val();
        	data.feePreserve1=$("#feePreserve1").val();
        	data.judgePreserve1=$("#judgePreserve1").val();
        	data.dateJudgment1=$("#dateJudgment1").val();
        	data.telJudgePreserve1=$("#telJudgePreserve1").val();
        	data.dateBackLawsuit1=$("#dateBackLawsuit1").val();
        	data.amountBack1=$("#amountBack1").val();
        	data.remark1=$("#remark1").val();
        	
        	data.dateRegister2=$("#dateRegister2").val();
        	data.numberAcceptCourt2=$("#numberAcceptCourt2").val();
        	data.reasonCourt2=$("#reasonCourt2").val();
        	data.plaintiff2=$("#plaintiff2").val();
        	data.defendant2=$("#defendant2").val();
        	data.courtVenue2=$("#courtVenue2").val();
        	data.amountTotal2=$("#amountTotal2").val();
        	data.amountLawsuit2=$("#amountLawsuit2").val();
        	data.courtUndertake2=$("#courtUndertake2").val();
        	data.telCourtUndertake2=$("#telCourtUndertake2").val();
        	data.clerk2=$("#clerk2").val();
        	data.telClerk2=$("#telClerk2").val();
        	data.dateSession2=$("#dateSession2").val();
        	data.feeAnnouncement2=$("#feeAnnouncement2").val();
        	data.contentJudgement2=$("#contentJudgement2").val();
        	data.datePreserve2=$("#datePreserve2").val();
        	data.amountPreserve2=$("#amountPreserve2").val();
        	data.feePreserve2=$("#feePreserve2").val();
        	data.judgePreserve2=$("#judgePreserve2").val();
        	data.dateJudgment2=$("#dateJudgment2").val();
        	data.telJudgePreserve2=$("#telJudgePreserve2").val();
        	data.dateBackLawsuit2=$("#dateBackLawsuit2").val();
        	data.amountBack2=$("#amountBack2").val();
        	data.remark2=$("#remark2").val();
        	
        	data.dateRegisterEnforce=$("#dateRegisterEnforce").val();
        	data.voucherNumber=$("#voucherNumber").val();
        	data.reasonEnforce=$("#reasonEnforce").val();
        	data.courtEnforce=$("#courtEnforce").val();
        	data.executionApplicant=$("#executionApplicant").val();
        	data.peopleEnforced=$("#peopleEnforced").val();
        	data.judgeEnforce=$("#judgeEnforce").val();
        	data.targetsEnforced=$("#targetsEnforced").val();
        	data.propertyClue=$("#propertyClue").val();
        	data.dateSuspendEnforce=$("#dateSuspendEnforce").val();
        	data.dateEndEnforce=$("#dateEndEnforce").val();
        	data.remarkExec=$("#remarkExec").val();
        	
        	
        	
        	data.principleEnforce=$("#principleEnforce").val();
        	data.interestEnforce=$("#interestEnforce").val();
        	data.penaltyEnforce=$("#penaltyEnforce").val();
        	data.feeEnforce=$("#feeEnforce").val();
        	data.totalEnforce=$("#totalEnforce").val();
        	data.targetsCourt=$("#targetsCourt").val();
        	data.numAmortized=$("#numAmortized").val();
        	data.principalAmortized=$("#principalAmortized").val();
        	data.interestAmortized=$("#interestAmortized").val();
        	data.principalSurplus=$("#principalSurplus").val();
        	data.interestSurplus=$("#interestSurplus").val();
        	
        	
        	data.dateEnforceSecond=$("#dateEnforceSecond").val();
        	data.targetsCourtSecond=$("#targetsCourtSecond").val();
        	data.remarkEnforceSecond=$("#remarkEnforceSecond").val();
        	data.remarkEnforce=$("#numSremarkEnforceurplus").val();
        	data.numSurplus=$("#numSurplus").val();
        	data.remarkEnforce=$("#remarkEnforce").val();
        	
        	$("#loaninfoArchive").is(":checked")?data.loaninfoArchive=1:data.loaninfoArchive=0;
        	$("#indictmentArchive").is(":checked")?data.indictmentArchive=1:data.indictmentArchive=0;
        	$("#directoryEvidenceArchive").is(":checked")?data.directoryEvidenceArchive=1:data.directoryEvidenceArchive=0;
        	$("#evidenceArchive").is(":checked")?data.evidenceArchive=1:data.evidenceArchive=0;
        	$("#rulingArchive").is(":checked")?data.rulingArchive=1:data.rulingArchive=0;
        	data.remark=$("#remark").val();
        	data.busiId= $.getUrlData("busiId");
        	data.cusId= $.getUrlData("cusId");
        	data.overdueId= $.getUrlData("overdueId");
        	var validstatus = $("#creditinfod").valid();
   	    	if(!validstatus){
   	    		layer.msg('有验证未通过，请检查！', {icon: 5});
   	    		return;
   	    	}
   	    	$.dpAjax({
	    		url:url,
	    		data:data,
    			success: function(datas){
    				layer.msg('执行成功！', {icon: 6});
					return;
                 }
	    	});
        }
		
		var getFyDataById=function(){
        	var data={};
			data.busiId=$.getUrlData("busiId");
			$.dpAjax({
				show:false,
	    		url:'${basePath}/DhOverdueLawsuitController/list',
    			data:data,
    			success: function(datas){
    				  var data=datas.result.rows;
    				  if(data.length>0){
    					    $("#fyInfoId").val(data[0].replaceId);
	   			        	$("#dateRegister1").val(data[0].dateRegister1);
				        	$("#numberAcceptCourt1").val(data[0].numberAcceptCourt1);
				        	$("#reasonCourt1").val(data[0].reasonCourt1);
				        	$("#plaintiff1").val(data[0].plaintiff1);
				        	$("#defendant1").val(data[0].defendant1);
				        	$("#courtVenue1").val(data[0].courtVenue1);
				        	$("#amountTotal1").val(data[0].amountTotal1);
				        	$("#amountLawsuit1").val(data[0].amountLawsuit1);
				        	$("#courtUndertake1").val(data[0].courtUndertake1);
				        	$("#telCourtUndertake1").val(data[0].telCourtUndertake1);
				        	$("#clerk1").val(data[0].clerk1);
				        	$("#telClerk1").val(data[0].telClerk1);
				        	$("#dateSession1").val(data[0].dateSession1);
				        	$("#feeAnnouncement1").val(data[0].feeAnnouncement1);
				        	$("#contentJudgement1").val(data[0].contentJudgement1);
				        	$("#datePreserve1").val(data[0].datePreserve1);
				        	$("#amountPreserve1").val(data[0].amountPreserve1);
				        	$("#feePreserve1").val(data[0].feePreserve1);
				        	$("#judgePreserve1").val(data[0].judgePreserve1);
				        	$("#dateJudgment1").val(data[0].dateJudgment1);
				        	$("#telJudgePreserve1").val(data[0].telJudgePreserve1);
				        	$("#dateBackLawsuit1").val(data[0].dateBackLawsuit1);
				        	$("#amountBack1").val(data[0].amountBack1);
				        	$("#remark1").val(data[0].remark1);
				        	
				        	$("#dateRegister2").val(data[0].dateRegister2);
				        	$("#numberAcceptCourt2").val(data[0].numberAcceptCourt2);
				        	$("#reasonCourt2").val(data[0].reasonCourt2);
				        	$("#plaintiff2").val(data[0].plaintiff2);
				        	$("#defendant2").val(data[0].defendant2);
				        	$("#courtVenue2").val(data[0].courtVenue2);
				        	$("#amountTotal2").val(data[0].amountTotal2);
				        	$("#amountLawsuit2").val(data[0].amountLawsuit2);
				        	$("#courtUndertake2").val(data[0].courtUndertake2);
				        	$("#telCourtUndertake2").val(data[0].telCourtUndertake2);
				        	$("#clerk2").val(data[0].clerk2);
				        	$("#telClerk2").val(data[0].telClerk2);
				        	$("#dateSession2").val(data[0].dateSession2);
				        	$("#feeAnnouncement2").val(data[0].feeAnnouncement2);
				        	$("#contentJudgement2").val(data[0].contentJudgement2);
				        	$("#datePreserve2").val(data[0].datePreserve2);
				        	$("#amountPreserve2").val(data[0].amountPreserve2);
				        	$("#feePreserve2").val(data[0].feePreserve2);
				        	$("#judgePreserve2").val(data[0].judgePreserve2);
				        	$("#dateJudgment2").val(data[0].dateJudgment2);
				        	$("#telJudgePreserve2").val(data[0].telJudgePreserve2);
				        	$("#dateBackLawsuit2").val(data[0].dateBackLawsuit2);
				        	$("#amountBack2").val(data[0].amountBack2);
				        	$("#remark2").val(data[0].remark2);
				        	
				        	$("#dateRegisterEnforce").val(data[0].dateRegisterEnforce);
				        	$("#voucherNumber").val(data[0].voucherNumber);
				        	$("#reasonEnforce").val(data[0].reasonEnforce);
				        	$("#courtEnforce").val(data[0].courtEnforce);
				        	$("#executionApplicant").val(data[0].executionApplicant);
				        	$("#peopleEnforced").val(data[0].peopleEnforced);
				        	$("#judgeEnforce").val(data[0].judgeEnforce);
				        	$("#targetsEnforced").val(data[0].targetsEnforced);
				        	$("#propertyClue").val(data[0].propertyClue);
				        	$("#dateSuspendEnforce").val(data[0].dateSuspendEnforce);
				        	$("#dateEndEnforce").val(data[0].dateEndEnforce);
				        	$("#remarkExec").val(data[0].remarkExec);
				        	
				        	
				        	$("#principleEnforce").val(data[0].principleEnforce);
				        	$("#interestEnforce").val(data[0].interestEnforce);
				        	$("#penaltyEnforce").val(data[0].penaltyEnforce);
				        	$("#feeEnforce").val(data[0].feeEnforce);
				        	$("#totalEnforce").val(data[0].totalEnforce);
				        	$("#targetsCourt").val(data[0].targetsCourt);
				        	$("#numAmortized").val(data[0].numAmortized);
				        	$("#principalAmortized").val(data[0].principalAmortized);
				        	$("#interestAmortized").val(data[0].interestAmortized);
				        	$("#principalSurplus").val(data[0].principalSurplus);
				        	$("#interestSurplus").val(data[0].interestSurplus);
				        	
				        	
				        	$("#dateEnforceSecond").val(data[0].dateEnforceSecond);
				        	$("#targetsCourtSecond").val(data[0].targetsCourtSecond);
				        	$("#remarkEnforceSecond").val(data[0].remarkEnforceSecond);
				        	$("#numSremarkEnforceurplus").val(data[0].remarkEnforce);
				        	$("#numSurplus").val(data[0].numSurplus);
				        	$("#remarkEnforce").val(data[0].remarkEnforce);
        	
				        	$("#loaninfoArchive").is(":checked")?data.loaninfoArchive=1:data.loaninfoArchive=0;
				        	$("#indictmentArchive").is(":checked")?data.indictmentArchive=1:data.indictmentArchive=0;
				        	$("#directoryEvidenceArchive").is(":checked")?data.directoryEvidenceArchive=1:data.directoryEvidenceArchive=0;
				        	$("#evidenceArchive").is(":checked")?data.evidenceArchive=1:data.evidenceArchive=0;
				        	$("#rulingArchive").is(":checked")?data.rulingArchive=1:data.rulingArchive=0;
				        	data.remark=$("#remark").val();
				        	data.busiId= $.getUrlData("busiId");
				        	data.cusId= $.getUrlData("cusId");
				        	
	   			        	if(data[0].loaninfoArchive==1){
								$("#loaninfoArchive").attr("checked", "checked"); 
							}
	   			        	if(data[0].indictmentArchive==1){
								$("#indictmentArchive").attr("checked", "checked"); 
							}
	   			        	if(data[0].directoryEvidenceArchive==1){
								$("#directoryEvidenceArchive").attr("checked", "checked"); 
							}
	   			        	if(data[0].evidenceArchive==1){
								$("#evidenceArchive").attr("checked", "checked"); 
							}
	   			        	if(data[0].rulingArchive==1){
								$("#rulingArchive").attr("checked", "checked"); 
							}
	   			        	$("#datePreserve").val(data[0].datePreserve);
	   			        	$("#objectPreserve").val(data[0].objectPreserve);
	   			        	$("#remarkPreserve").val(data[0].remarkPreserve);
	   			        	$("#remark").val(data[0].remark);
 						    $("#lawsuitSave").hide();
 						   $("#lawsuitUpdate").show();
						  return;
    				  }
                }
	    	});
        }
	</script>